import { Button, VerticalBox } from "std-widgets.slint";

export component MainWindow inherits Window {
    width: 800px;
    height: 600px;

    MenuBar {
        Menu {
            title: @tr("File");
            MenuItem {
                title: @tr("New");
                activated => {
                    file-new();
                }
            }

            MenuItem {
                title: @tr("Open");
                activated => {
                    file-open();
                }
            }
        }

        Menu {
            title: @tr("Edit");
            MenuItem {
                title: @tr("Copy");
            }

            MenuItem {
                title: @tr("Paste");
            }

            MenuSeparator { }

            Menu {
                title: @tr("Find");
                MenuItem {
                    title: @tr("Find in document...");
                }

                MenuItem {
                    title: @tr("Find Next");
                }

                MenuItem {
                    title: @tr("Find Previous");
                }
            }
        }
    }

    callback file-new();
    callback file-open();
}
